<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets" 
      xmlns:c="http://java.sun.com/jsp/jstl/core"
      xmlns:totoland="http://java.sun.com/jsf/composite/components">
    <h:head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <link href="${request.contextPath}/resources/images/favicon.ico" rel="shortcut icon" type="image/x-icon" />
            <script src="${request.contextPath}/resources/js/html5.js"></script>
        <link rel="stylesheet" href="${request.contextPath}/resources/css/style.css" media="screen"/>
        
        <link rel="stylesheet" href="${request.contextPath}/resources/css/style.responsive.css" media="all"/>

    </h:head>
    <h:body>
        <h:form>

                <p:panel id="REPORT_007" header="#{msg.report_007_header}">

                    <p:panel header="#{formReport007Controller.reportTitle}" style="width: 950px">
                        <p:messages id="REPORT_007msgFrmDetails"></p:messages>
                        
                        <p:panelGrid styleClass="frmDetail" id="REPORT_007pnlFrm">
                            <f:facet name="header">
                                <p:row>  
                                    <p:column rowspan="2" style="text-align: center;vertical-align: middle;">รายงาน</p:column>
                                    <p:column colspan="3" style="text-align: center;width: 90px">จำนวน</p:column>
                                </p:row>
                                <p:row>
                                    <p:column colspan="1" style="text-align: center;width: 90px">พรรค</p:column>
                                    <p:column colspan="1" style="text-align: center;width: 120px">เรื่อง</p:column>
                                    <p:column colspan="1" style="text-align: center;width: 90px">สาขา</p:column>
                                </p:row>
                            </f:facet>
                            <p:row>
                                <p:column>
                                    <h:outputText value="#{formReport007Controller.report007Details[0].title}"/>
                                </p:column>
                                <p:column>
                                    <totoland:inputNumber disabled="#{formReport002Controller.paramMode=='view'}" value="#{formReport007Controller.report007Details[0].politicalPartyAmount}"/>
                                </p:column>
                                <p:column>
                                    <totoland:inputNumber disabled="#{formReport002Controller.paramMode=='view'}" value="#{formReport007Controller.report007Details[0].storyAmount}"/>
                                </p:column>
                                <p:column>
                                    <totoland:inputNumber disabled="#{formReport002Controller.paramMode=='view'}" value="#{formReport007Controller.report007Details[0].branchAmount}"/>
                                </p:column>
                            </p:row>
                            <p:row>
                                <p:column>
                                    <h:outputText value="#{formReport007Controller.report007Details[1].title}"/>
                                </p:column>
                                <p:column>
                                    <totoland:inputNumber disabled="#{formReport002Controller.paramMode=='view'}" value="#{formReport007Controller.report007Details[1].politicalPartyAmount}"/>
                                </p:column>
                                <p:column>
                                    <totoland:inputNumber disabled="#{formReport002Controller.paramMode=='view'}" value="#{formReport007Controller.report007Details[1].storyAmount}"/>
                                </p:column>
                                <p:column>
                                    <totoland:inputNumber disabled="#{formReport002Controller.paramMode=='view'}" value="#{formReport007Controller.report007Details[1].branchAmount}"/>
                                </p:column>
                            </p:row>
                            <p:row>
                                <p:column>
                                    <h:outputText value="#{formReport007Controller.report007Details[2].title}"/>
                                </p:column>
                                <p:column>
                                    <totoland:inputNumber disabled="#{formReport002Controller.paramMode=='view'}" value="#{formReport007Controller.report007Details[2].politicalPartyAmount}"/>
                                </p:column>
                                <p:column>
                                    <totoland:inputNumber disabled="#{formReport002Controller.paramMode=='view'}" value="#{formReport007Controller.report007Details[2].storyAmount}"/>
                                </p:column>
                                <p:column>
                                    <totoland:inputNumber disabled="#{formReport002Controller.paramMode=='view'}" value="#{formReport007Controller.report007Details[2].branchAmount}"/>
                                </p:column>
                            </p:row>
                            <p:row>
                                <p:column>
                                    <h:outputText value="#{formReport007Controller.report007Details[3].title}"/>
                                </p:column>
                                <p:column>
                                    <totoland:inputNumber disabled="#{formReport002Controller.paramMode=='view'}" value="#{formReport007Controller.report007Details[3].politicalPartyAmount}"/>
                                </p:column>
                                <p:column>
                                    <totoland:inputNumber disabled="#{formReport002Controller.paramMode=='view'}" value="#{formReport007Controller.report007Details[3].storyAmount}"/>
                                </p:column>
                                <p:column>
                                    <totoland:inputNumber disabled="#{formReport002Controller.paramMode=='view'}" value="#{formReport007Controller.report007Details[3].branchAmount}"/>
                                </p:column>
                            </p:row>
                            <p:row>
                                <p:column>
                                    <h:outputText value="#{formReport007Controller.report007Details[4].title}"/>
                                </p:column>
                                <p:column>
                                    <totoland:inputNumber disabled="#{formReport002Controller.paramMode=='view'}" value="#{formReport007Controller.report007Details[4].politicalPartyAmount}"/>
                                </p:column>
                                <p:column>
                                    <totoland:inputNumber disabled="#{formReport002Controller.paramMode=='view'}" value="#{formReport007Controller.report007Details[4].storyAmount}"/>
                                </p:column>
                                <p:column>
                                    <totoland:inputNumber disabled="#{formReport002Controller.paramMode=='view'}" value="#{formReport007Controller.report007Details[4].branchAmount}"/>
                                </p:column>
                            </p:row>
                            <p:row>
                                <p:column>
                                    <h:outputText value="#{formReport007Controller.report007Details[5].title}"/>
                                </p:column>
                                <p:column>
                                    <totoland:inputNumber disabled="#{formReport002Controller.paramMode=='view'}" value="#{formReport007Controller.report007Details[5].politicalPartyAmount}"/>
                                </p:column>
                                <p:column>
                                    <totoland:inputNumber disabled="#{formReport002Controller.paramMode=='view'}" value="#{formReport007Controller.report007Details[5].storyAmount}"/>
                                </p:column>
                                <p:column>
                                    <totoland:inputNumber disabled="#{formReport002Controller.paramMode=='view'}" value="#{formReport007Controller.report007Details[5].branchAmount}"/>
                                </p:column>
                            </p:row>
                            <p:row>
                                <p:column>
                                    <p:inputText value="#{formReport007Controller.report007Details[6].title}"/>
                                </p:column>
                                <p:column>
                                    <totoland:inputNumber disabled="#{formReport002Controller.paramMode=='view'}" value="#{formReport007Controller.report007Details[6].politicalPartyAmount}"/>
                                </p:column>
                                <p:column>
                                    <totoland:inputNumber disabled="#{formReport002Controller.paramMode=='view'}" value="#{formReport007Controller.report007Details[6].storyAmount}"/>
                                </p:column>
                                <p:column>
                                    <totoland:inputNumber disabled="#{formReport002Controller.paramMode=='view'}" value="#{formReport007Controller.report007Details[6].branchAmount}"/>
                                </p:column>
                            </p:row>
                            <p:row>
                                <p:column>
                                    <p:inputText value="#{formReport007Controller.report007Details[7].title}"/>
                                </p:column>
                                <p:column>
                                    <totoland:inputNumber disabled="#{formReport002Controller.paramMode=='view'}" value="#{formReport007Controller.report007Details[7].politicalPartyAmount}"/>
                                </p:column>
                                <p:column>
                                    <totoland:inputNumber disabled="#{formReport002Controller.paramMode=='view'}" value="#{formReport007Controller.report007Details[7].storyAmount}"/>
                                </p:column>
                                <p:column>
                                    <totoland:inputNumber disabled="#{formReport002Controller.paramMode=='view'}" value="#{formReport007Controller.report007Details[7].branchAmount}"/>
                                </p:column>
                            </p:row>
                            <p:row>
                                <p:column>
                                    <p:inputText value="#{formReport007Controller.report007Details[8].title}"/>
                                </p:column>
                                <p:column>
                                    <totoland:inputNumber disabled="#{formReport002Controller.paramMode=='view'}" value="#{formReport007Controller.report007Details[8].politicalPartyAmount}"/>
                                </p:column>
                                <p:column>
                                    <totoland:inputNumber disabled="#{formReport002Controller.paramMode=='view'}" value="#{formReport007Controller.report007Details[8].storyAmount}"/>
                                </p:column>
                                <p:column>
                                    <totoland:inputNumber disabled="#{formReport002Controller.paramMode=='view'}" value="#{formReport007Controller.report007Details[8].branchAmount}"/>
                                </p:column>
                            </p:row>

                        </p:panelGrid>

                        <h:panelGroup id="REPORT_007pnlCmd" rendered="#{formReport007Controller.report007.flowStatusId!=200}">
                        <div align="center">
                            <p:commandButton value="#{msg.btn_save}" actionListener="#{formReport007Controller.save()}" id="REPORT_007btnSave" rendered="#{formReport007Controller.paramMode=='create'}"/>
                            <p:commandButton value="#{msg.btn_edit}" actionListener="#{formReport007Controller.goToEdit()}" id="REPORT_007btnEdit" rendered="#{formReport007Controller.paramMode=='view' 
                                                      and formReport007Controller.canEdit(formReport007Controller.report007.createdUserGroup,formReport007Controller.report007.reportStatus,formReport007Controller.report007.flowStatusId)}"/>
                            <p:commandButton value="#{msg.btn_close}" actionListener="#{formReport007Controller.goToClose()}" id="REPORT_007btnClose" rendered="#{formReport007Controller.paramMode=='view' || formReport007Controller.paramMode=='create'}"/>
                            <p:commandButton value="#{msg.btn_save}" actionListener="#{formReport007Controller.edit()}" id="REPORT_007btnSaveEdit" rendered="#{formReport007Controller.paramMode=='edit'}"/>
                            <p:commandButton value="#{msg.btn_cancel}" id="REPORT_007btnCancel" actionListener="#{formReport007Controller.goToCancel()}" rendered="#{formReport007Controller.paramMode=='edit'}"/>
                        </div>
                    </h:panelGroup>
                    </p:panel>

                </p:panel>
            
        </h:form>
    </h:body>
</html>